Working dropdown menu without clicks