Adding layou for activity with adding constant event