removed uncessary call to set layout