adding code for allow tab