Fixes timestamp

Fix #1846, #1849  and a bug when we remove/add  a timweEnabled layers the time selector status was not updated.