javascript show/hide of different statuses