Added close sheet functionality