added closebtn directive