Implemented layers widget (finally)